import type {RouteRecordRaw} from "vue-router";

/**
 * 人力资源部门路由配置文件
 * */
const employee:Readonly<RouteRecordRaw> = {
  name: "Employee",
  path: "/employee",
  component: () => import("../views/employee/index.vue"),
  children: [
    {
      path: "/employee",
      redirect() {
        return '/employee/info'
      },
    },
    {
      path: "info",
      name: "EmpList",
      component: () => import("../views/employee/empInfo/index.vue")
    },
    {
      path: "apprise",
      name: "EmpApprise",
      component: () => import("../views/employee/display/aside/index.vue")
    },
    {
      path: "rap",
      name: "EmpRAP",
      component: () => import("../views/employee/display/aside/index.vue")
    },
    {
      path: "move",
      name: "EmpMove",
      component: () => import("../views/employee/display/aside/index.vue")
    },
    {
      path: "salary",
      name: "EmpSalary",
      component: () => import("../views/employee/display/aside/index.vue")
    },
    {
      path: "record-chart",
      name: "recordChart",
      component: () => import("../views/employee/display/aside/index.vue")
    },
    {
      path: "record-analyze",
      name: "recordAnalyzeChart",
      component: () => import("../views/employee/display/aside/index.vue")
    },
    {
      path: "goal-calculate",
      name: "goalCalculateChart",
      component: () => import("../views/employee/display/aside/index.vue")
    },
  ]
};
export default employee